package cn.wangjun.org.query;

import lombok.Data;

@Data
public class EmployeeQuery {
    private Integer currentPage = 1;//当前页
    private Integer pageSize = 5;//每页显示条数
    //高级查询
    private String keyword;
    //返回分页的第一个参数
    public Integer getStart(){
        return (this.currentPage-1)*this.pageSize;
    }
}
